package Fruit;

public class FruitTest {
    public static void main(String[] args) {
        Fruit fruit1 = new Apple();
        System.out.println(fruit1);
        fruit1.setArea("昭通");
        fruit1.setName("苹果");
        fruit1.setPrice(6);
        System.out.println(fruit1);
        Fruit fruit2 = new Watermelon();
        fruit2.setArea("曲靖");
        fruit2.setName("西瓜");
        fruit2.setPrice(10);
        System.out.println(fruit2);
        Fruit fruit3 = new lemon();
        fruit3.setArea("玉溪");
        fruit3.setName("柠檬");
        fruit3.setPrice(5);
        System.out.println(fruit3);
        }
}